package com.stone.im.common;

import redis.clients.jedis.Jedis;

public class JedisManager {

    private Jedis jedis = new Jedis("localhost");

    public JedisManager(){

    }

    static class Singleton{
        static JedisManager jedisManager =  new JedisManager();
    }

    public static JedisManager getInstance(){
        return Singleton.jedisManager;
    }

    public Jedis getJedis(){
        return jedis;
    }
}
